using System.ServiceModel;
using System.ServiceModel.Web;
using MusicWorks.Service.DataContracts;

namespace MusicWorks.Service.Contracts
{
    [ServiceContract]
    public interface ISearchService
    {

        [OperationContract]
        [WebGet(UriTemplate = "suggestions?q={query}",
 RequestFormat = WebMessageFormat.Xml,
 ResponseFormat = WebMessageFormat.Xml)]
        SearchSuggestions GetSuggestions(string query);

        [OperationContract]
        [WebGet(UriTemplate = "json/suggestions?q={query}",
         RequestFormat = WebMessageFormat.Json,
         ResponseFormat = WebMessageFormat.Json)]
        SearchJSONSuggestions GetJSONSuggestions(string query);
    }
}